home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
cpp_libs
/
answrbok
/
8_12.lha
/
8_12
/
8_12a4.c
< prev
next >
Wrap
Text File
|
1993-08-08
|
613b
|
24 lines
* Copyright (c) 1990 by AT&T Bell Telephone Laboratories, Incorporated. */
* The C++ Answer Book */
* Tony Hansen */
* All rights reserved. */
/ Reset get pointer to point to the
/ beginning of the buffer. Set the state
/ flag to indicate that get() calls
/ need to be buffered.
oid extrabuf::setbuffering()
/ cerr << "setbuffering() invoked\n"; // DELETE
/ cerr << "\tgptr=" << form("%#x", gptr) << "\n";
/ cerr << "\tbase=" << form("%#x", base) << "\n";
dobuffering = 1;
if (gptr != base)
{
int length = pptr - gptr;
if (length > 0)
memmove(base, gptr, length);
gptr = base;
pptr = base + length;
}